package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Getter
@Setter
public class TravelLike {
    public static final int STATE_HAVE= 1;//有赞状态
    public static final int STATE_NOTHING = 0;//无赞状态
    private Long id;//主键

    private User user;//用户

    private Travel travel;//游记
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date time;//时间

    private Integer state;//状态

    private Integer type = 0;//已读,未读
}